#ifndef SOLOADER_JNI_H
#define SOLOADER_JNI_H
/*
 * jni.h
 *
 * Fake Java Native Interface, providing JVM and Env objects.
 *
 * Copyright (C) 2021 Andy Nguyen
 * Copyright (C) 2021 Rinnegatamante
 * Copyright (C) 2022 Volodymyr Atamanenko
 *
 * This software may be modified and distributed under the terms
 * of the MIT license. See the LICENSE file for details.
 */

#include <stdlib.h>

extern char fake_vm[];
extern char fake_env[];

extern int GetEnv(void *vm, void **env, int r2);

void init_jni();

void *Android_JNI_GetEnv(void);
int Android_JNI_FileOpen(char *a1, int a2);
unsigned int Android_JNI_FileRead(char *a1, void *buf, unsigned int a3, int a4);
int64_t Android_JNI_FileSeek(char *a1, int64_t a2, int a3);
int Android_JNI_FileClose(char *a1);
int64_t Android_JNI_FileSize(int a1);

#endif // SOLOADER_JNI_H
